package com.itany.corejava.day17;

import java.lang.annotation.Annotation;
import java.util.Arrays;

public class TestAnnotation {

    public static void main(String[] args) {

        Class c=Person.class;

//        Annotation[] annotations=c.getAnnotations();
//
//        System.out.println(Arrays.toString(annotations));


        MyAnnotation myAnnotation= (MyAnnotation) c.getAnnotation(MyAnnotation.class);

        System.out.println(myAnnotation);

        System.out.println(myAnnotation.value());
        System.out.println(myAnnotation.count());
        System.out.println(Arrays.toString(myAnnotation.arr()));
    }


}
